<?php
/* @var $this JobController */
/* @var $model Job */

$this->breadcrumbs=array(
	'Jobs'=>array('index'),
	'Manage',
);
?>


<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'job-grid',
	'dataProvider'=>$model,
	//'filter'=>$model,
	'columns'=>array(
		//'id',
		'user_id',
		'name',
		'status',
		'statuspost',
		// 'subjobtype_id',
		'timeend',
		'timepost',
		// 'jobdesc',
		// 'fileattached',
		'id_winner',
		'viewed',
		'budget_id',
		array(
			'class'=>'CButtonColumn',
			'template'=>'{accepted}{delete}',
			'buttons'=>array(
		        'accepted' => array(
		            'label'=>'[V]',
		            //'imageUrl'=>Yii::app()->request->baseUrl.'/images/email.png',
		            'url'=>'Yii::app()->createUrl("users/email", array("id"=>$data->id))',
		        ),
		        'down' => array(
		            'label'=>'[-]',
		            'url'=>'"#"',
		            'visible'=>'$data->score > 0',
		            'click'=>'function(){alert("Going down!");}',
		        ),
    ),
		),
	),
)); ?>
